package org.batyrov.equery.action.admin;

import org.batyrov.equery.action.BaseAction;
import org.batyrov.equery.action.Const;
import org.batyrov.equery.bean.User;

/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 12.08.2009
 * Time: 21:43:20
 * To change this template use File | Settings | File Templates.
 */
public class GetUser extends BaseAction{
    private long id = -1;
    private User user;

    @Override
    public String execute() throws Exception{
        super.execute();
        user = em.find(User.class, id);
        return Const.SUCCESS;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
